// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

.el-button {
  border-radius: $button-radius !important;
}

.el-input__inner {
  border-radius: $input-radius !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

.el-menu--collapse>div>.el-submenu>.el-submenu__title .el-submenu__icon-arrow {
  display: none;
}

/* 去除number类型输入框上下箭头 */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

input[type="number"] {
  -moz-appearance: textfield;
}

.el-button--text {
  color: $text-btn-color !important;
}

.el-button--primary {
  background-color: $main-btn-color;
  border: 1px solid $main-btn-color;
}

.el-button--primary:hover,
.el-button--primary:focus {
  background: $main-btn-color-hover;
  border-color: $main-btn-color-hover;
  color: #FFFFFF;
}

::v-deep .el-button--primary.is-plain {
  color: #1890ff !important;
  background: #e8f4ff !important;
  border-color: #a3d3ff !important;
}

.el-pagination.is-background .el-pager li:not(.disabled).active {
  background-color: $pagination-color !important;
}

.el-pagination.is-background .el-pager li:not(.disabled).active {
  color: #fff !important;
}

.el-pagination.is-background .el-pager li:not(.disabled):hover {
  color: $pagination-color;
}

.el-tabs__item:hover {
  color: $pagination-color;
}

.el-tabs__item.is-active {
  color: $pagination-color;
}

.el-tabs__active-bar {
  background: $pagination-color !important;
}

.el-tooltip__popper {
  max-width: 185px !important;
}

.el-tooltip__popper.is-dark {
  background: rgba(0, 0, 0, 0.6) !important;
}

// 分页样式
.el-pagination.is-background .btn-prev,
.el-pagination.is-background .btn-next,
.el-pagination.is-background .el-pager li {
  background: #FFFFFF !important;
  border-radius: 4px !important;
  border: 1px solid #DDDEE1 !important;
  font-weight: 400;
  font-size: 12px;
  color: #657180;
}

.el-pager li:not(.disabled).active {
  border: 1px solid $pagination-color !important;
}

.el-submenu {
  .el-submenu__title {
    height: $sidebar-menu-height !important;
    line-height: $sidebar-menu-height !important;
  }
}
.el-menu-item {
  height: $sidebar-menu-height !important;
  line-height: $sidebar-menu-height !important;
}